package com.tmt.im.jpa.entity;

import com.tmt.data.jpa.entity.TmtBaseEntity;
import com.tmt.im.common.enums.RedPackageType;
import com.tmt.im.jpa.converter.StringAndLongListConverter;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.SuperBuilder;

import java.io.Serial;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.List;

/**
 * @Description TODO
 * @Author wuyi
 * @Date 2024/9/2 11:33
 * @Version 1.0
 **/
@Getter
@Setter
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name = "red_package_skin")
@Tag(name = "RedPackageSkin", description = "红包皮肤对象")
public class RedPackageSkin extends TmtBaseEntity {

    @Serial
    private static final long serialVersionUID = 2318709392146595226L;

    @Schema(name = "name", description = "红包皮肤名称")
    @Column(nullable = false)
    private String name;

    @Schema(name = "type", description = "红包皮肤的类型")
    @Column(nullable = false)
    @Enumerated(EnumType.STRING)
    private RedPackageType type;

    @Schema(name = "url", description = "红包皮肤访问URL地址")
    @Column(nullable = false)
    private String url;

    @Schema(name = "creatorId", description = "红包皮肤创建人")
    @Column(nullable = false)
    private Long creatorId;

}
